package com.tomdd.iotdbapplication;

import com.tomdd.iotdbapplication.config.IoTDBProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

@SpringBootApplication
@Slf4j
public class IoTdbApplication {


    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(IoTdbApplication.class, args);
        ConfigurableEnvironment environment = context.getEnvironment();
       log.info(context.getBean(IoTDBProperties.class).toString());
       log.info("{} Start Success",environment.getProperty("spring.application.name"));
    }

}
